<!--{include biz_header}-->
<div class="place">
    <span>位置：</span>
    <ul class="placeul">
		<!--{if $selector=='failure'}-->
		 <li><a href="/biz/teams/index.php">全部团购</a></li>
                  <li><a href="/biz/teams/failure.php">失败团购</a></li>
				<!--{elseif $selector=='success'}-->
				 <li><a href="/biz/teams/index.php">全部团购</a></li>
                 <li><a href="/biz/teams/success.php">成功团购</a></li>
				<!--{else}-->
				 <li><a href="/biz/teams/index.php">全部团购</a></li>
                   
				<!--{/if}-->
  
	
	<li style="float:right;  ">
	 <a href="javascript::" style="padding-right:30px;color:#3B95C8; font-size:22px;">
     <!--{if is_partner()}-->{$login_partner['title']}！<!--{/if}-->
	</a> </li>
    </ul>
</div>
<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<div class="formtitle" style="padding-left:6px;">
	<span>
		<!--{if $selector=='failure'}-->
                  失败团购
				<!--{elseif $selector=='success'}-->
                   成功团购
				<!--{else}-->
                   全部团购
				<!--{/if}-->
	</span>
    <!--<div class="sect" style="padding:0 0 0 80px;">
					<form method="get">
					<p style="margin:10px 0 0px 35px;;">团购编号：<input type="text" name="team_id" class="h-input number" value="{$team_id}" >&nbsp;&nbsp;关键字：<input type="text" name="team_key" class="h-input text" value="{$team_key}" >&nbsp;&nbsp;<input type="submit" value="筛选" class="formbutton"  style="padding:1px 6px;"/></p>
					</form>
				</div>-->
    </div>
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
			
					<ul class="filter">
						<li>${!$audit ? '全部' : '<a href="?">全部</a>'}</li>
						<li>${$audit=='N' ? '未提交' : '<a href="?audit=N">未提交</a>'}</li>
						<li>${$audit=='Y' ? '审核中' : '<a href="?audit=Y">审核中</a>'}</li>
						<li>${$audit=='F' ? '未通过' : '<a href="?audit=F">未通过</a>'}</li>
						<li>${$audit=='T' ? '已通过' : '<a href="?audit=T">已通过</a>'}</li>
						<li>${$audit=='D' ? '审核失败' : '<a href="?audit=D">审核失败</a>'}</li>
					</ul>
				</div>
				
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="5" border="1" style="width:100%"  class="coupons-table" bordercolor="#89B4D6">
					<tr><th width="40">ID</th><th width="400">团购名称</th><th width="80" nowrap>类别</th><th width="100">日期</th><th width="50">成交</th><th width="60" nowrap>价格</th><th width="140">项目审批</th><th width="300">操作</th></tr>
					<!--{loop $teams $index $one}-->
					<!--${$oldstate = $one['state']}-->
					<!--${$one['state'] = team_state($one)}-->
					<tr ${$index%2?'':'class="alt"'} id="team-list-id-{$one['id']}">
						<td>{$one['id']}</a></td>
						<td>
							${$one['business_audit']=='N' ? '【<span style="color:#FF00FF;">未提交</span>】' : ''}
							${$one['business_audit']=='Y' ? '【<span style="color:#FF0000;">审核中</span>】' : ''}
							${$one['business_audit']=='F' ? '【<span style="color:#0000FF;">未通过</span>】' : ''}
							${$one['business_audit']=='T' ? '【<span style="color:#00FF00;">已通过</span>】' : ''}
							${$one['business_audit']=='D' ? '【<span style="color:#666666;">审核失败</span>】' : ''}
							<a class="deal-title" href="/team.php?id={$one['id']}" target="_blank">{$one['title']}</a>
						</td>
						<td nowrap>{$cities[$one['city_id']]['name']}<br/>{$groups[$one['group_id']]['name']}</td>
						<td nowrap>${date('Y-m-d',$one['begin_time'])}<br/>${date('Y-m-d',$one['end_time'])}</td>
						<td nowrap>{$one['now_number']}/{$one['min_number']}</td>
						<td nowrap><span class="money">{$currency}</span>${moneyit($one['team_price'])}<br/><span class="money">{$currency}</span>${moneyit($one['market_price'])}</td>
						<td nowrap>{$one['business_content']}</td>
						<td class="op" nowrap><a href="/ajax/partner.php?action=teamdetail&id={$one['id']}" class="ajaxlink">详情</a>
						<!--{if $one['business_audit'] == 'N' || $one['business_audit'] == 'F' }-->
						<!--{if $login_partner['business_team_edit'] == 'Y'}-->｜<a href="/biz/teams/edit.php?id={$one['id']}">编辑</a><!--{/if}-->
						｜<a href="/biz/teams/ajax.php?action=teamremove&id={$one['id']}" class="ajaxlink" ask="确定删除本团购吗？" >删除</a>
						<!--{/if}-->
						｜<a href="/biz/order/team.php?id={$one['id']}">订单</a><!--{if $one['now_number']>=$one['min_number']}-->｜<a href="/biz/teams/down.php?id={$one['id']}" target="_blank">下载</a><!--{/if}-->
						</td>
					</tr>
					<!--{/loop}-->
					<tr><td colspan="8">{$pagestring}</tr>
                    </table>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include biz_footer}-->
